package com.hcb.tonguetiphealth.view;

import android.content.Intent;
import android.os.Bundle;

public class WelcomeActivity extends AbstractActivity {

	//private ProgressBar pbar;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.welcome);
		delay();
	}

	private void enter(){
		Intent main = new Intent(WelcomeActivity.this, HomeActivity.class);
		startActivity(main);
		this.finish();
	}

	private void delay() {
		new Thread(){
			public void run() {
				try {
					Thread.sleep(3000);
					enter();
				} catch (InterruptedException e) {}
			
			}
		}.start();
		
	}
	
	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}

}
